<?php

use think\facade\Route;

$domain = ['Access-Control-Allow-Headers' => 'Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-CSRF-TOKEN, X-Requested-With, token, sign'];

//商学院-分类
Route::group('collegeCate', function () {
    Route::get('/index', 'collegeCate/index');
});

//商学院-课程
Route::group('course', function () {
    Route::get('/getList', 'course/getList');
    Route::get('/verify', 'course/verify')->middleware('verify');
    Route::get('/details', 'course/details')->middleware('verify');
    Route::post('/hit', 'course/hit')->middleware('verify');
    Route::post('/comment', 'course/comment')->middleware('verify');
    Route::get('/commentList', 'course/commentList');
});

//商学院-课程订单
Route::group('courseOrder', function () {
    Route::get('/payment', 'courseOrder/payment');
    Route::get('/getList', 'courseOrder/getList');
    Route::post('/submit', 'courseOrder/submit');
})->middleware('verify');

